package com.zhu.load;

import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName TestDynamicLoad
 * @Description TODO
 * @Author zhuxiongbin
 * @Date 2021-11-03 9:39
 * @Version 1.0.0
 */
@Slf4j(topic = "zhu")
public class TestDynamicLoad {

    static {
        log.debug("============= load TestDynamicLoad ===========");
    }

    public static void main(String[] args) {
        new A();
        B b;
        System.out.println("=========== main ===============");
    }

}

class A {

    static {
        System.out.println("======== load A ===========");
    }

    public A(){
        System.out.println("======== initial A ===========");
    }
}

class B {

    static {
        System.out.println("======== load B ===========");
    }

    public B(){
        System.out.println("======== initial B ===========");
    }
}